| |
| Search found 27 matches |
| Author | Message |
|---|---|
| peterlyttle Replies: 13 Views: 45252 |
|
| This worked a treat!!
FYI here is my powershell monitor for SAM $input_file = "E:\PageGateData\Logs\PGDial1.log" $regex = "^(.*Received:.*\+CSQ:.)(.*)(,)(.*)(<CR><LF><CR><LF>)(.*)(<CR><LF>)$" $output = select-string -Path $input_file -Pattern $regex -AllMatches | % { $_.Matches } | % { $_.Value } | Select -Last 1 $signal_strength = [regex]::Match($output,$regex).captures.groups[2].value $bit_error_rate = [regex]::Match($output,$regex).captures.groups[4].value $status = [regex]::Match($output,$regex).captures.groups[6].value Switch ($signal_strength) { 1{Write-Host "Message.Signal:Poor:"$signal_strength" (-112dB)" Write-Host "Statistic.Signal:"$signal_strength} 2{Write-Host "Message.Signal:Marginal:"$signal_strength" (-109dB)" Write-Host "Statistic.Signal:"$signal_strength} 3{Write-Host "Message.Signal:Marginal:"$signal_strength" (-107dB)" Write-Host "Statistic.Signal:"$signal_strength} 4{Write-Host "Message.Signal:Marginal:"$signal_strength" (-105dB)" Write-Host "Statistic.Signal:"$signal_strength} 5{Write-Host "Message.Signal:Marginal:"$signal_strength" (-103dB)" Write-Host "Statistic.Signal:"$signal_strength} 6{Write-Host "Message.Signal:Marginal:"$signal_strength" (-101dB)" Write-Host "Statistic.Signal:"$signal_strength} 7{Write-Host "Message.Signal:Marginal:"$signal_strength" (-99dB)& ... |
|
| peterlyttle Replies: 13 Views: 45252 |
|
| If you use the GSMReply feature - the connector will poll the modem every 60 seconds. As long as "AT+CSQ" is in the INIT string, it will log the signal strength. This option also gives you the ability to REMOVE received messages so the modem does not suffer from memory overload and lockup due to too many unread messages
Nice, i'll give this a shot and see how it goes! Thanks |
|
| peterlyttle Replies: 13 Views: 45252 |
|
| Thats great thanks! | |
| peterlyttle Replies: 13 Views: 45252 |
|
| Ah ok, can I raise that as a feature request? Some way initiating AT commands without needing to stop the Connector and connect with putty etc? | |
| peterlyttle Replies: 13 Views: 45252 |
|
| Just a quick question, as the log file will only have the AT+CSQ from the last message that was sent. Can I drop a .asc file for the GetAscii module to pick up that will force the AT+CSQ to be issued? | |
| peterlyttle Replies: 13 Views: 45252 |
|
| Ah ok cool thanks, just hoped there would be an easier way to do it -
First shot at the regex is (maybe useful for someone else) - ^(.*Received:<CR><LF>\+CSQ:.)(.*)(,)(.*)(<CR><LF><CR><LF>)(.*)(<CR><LF>)$ |
|
| peterlyttle Replies: 13 Views: 45252 |
|
| Yep, the init is set as AT+CSQ for the Carrier | |
| peterlyttle Replies: 13 Views: 45252 |
|
| Hello,
If I have connector 1 connected to my modem I am unable to connect and run AT+CSQ to get the signal strength due to the com port being in use. Does PageGate poll this value periodically and if so is there anywhere that I can extract the value to report/alert on from within Solarwinds? Thanks, Peter |
|
| peterlyttle Replies: 4 Views: 18291 |
|
| I think OzCom has it, the output would be to SMS Carrier but the number could be anything. We were just looking to try and utilize our current SMS infrastructure rather than going to the Nexmo route for SMS gateway. | |
| peterlyttle Replies: 4 Views: 18291 |
|
| Hello,
Am I trying to do something that's not currently possible? I want to email 079132456@internal.fqdn.com where the mobile number will change and wouldn't be setup as a per-user via the Admin? Thanks, Peter |
|
| peterlyttle Replies: 2 Views: 9863 |
|
| Spot on thanks, used the Smarthost rather than the MX record and thats seemed to work ok on the trial license. | |
| peterlyttle Replies: 2 Views: 9863 |
|
| Hello,
We've recently purchased the GetMail Interface. I've been doing a bit of reading on the GetMail Interface but from what I've read its more for mobile_number@domain.com What I would like to do is any email sent to pagegate1@domain.com go to recipient group 1 and pagegate2@domain.com go to recipient group 2 Any advise the best way to configure this (with or without Distribution Groups) would be much appreciated. Thanks, Peter |
|
| peterlyttle Replies: 6 Views: 16659 |
|
| ok fair enough. I guess I could put a CR/LF for the first line and would make it a little more readable.
Thanks |
|
| peterlyttle Replies: 6 Views: 16659 |
|
| Hello,
Yes I just want to remove the 1 of x part so that when a message comes through it wouldnt look like this - 1 of 2:Status: Up Name: Servername Model: HP etc Hardware Fault: PSU S/N: AB345 2 of 2:Part Number: 1234 Instead it would look like this - Status: Up Name: Servername Model: HP etc Hardware Fault: PSU S/N: AB345 Part Number: 1234 |
|
| peterlyttle Replies: 6 Views: 16659 |
|
| Yea, I have a carrier limit of 150 and recipient of 600 (4 messages) but had hoped I could hide the 1 of x so that the messages get assembled correctly. | |
All times are GMT - 5 Hours |