Well, but that does not help me to pass the hostname to an external command,
I think.
Here is a snip from my probe:
<parameters>
"Domain" = ""
"Username" = "Administrator"
"Password*" = ""
"Alarm Size" = 2000
"Warning Size" = 1000
</parameters>
<command-line>
path = ""
cmd = "wmi-queue.sh"
arg = "${address} ${Username} ${Password*} ${Alarm Size} ${Warning Size}
${Domain}"
</command-line>
<command-exit>
down: ${EXIT_CODE} = 3
alarm: ${EXIT_CODE} = 2
warning: ${EXIT_CODE} = 1
okay: ${EXIT_CODE} = 0
</command-exit>
<command-display>
\b5\Service Status\0p\
\4\Service:\0\ The queue on ${addr} is $queue (${chartable: ##### :
$queue})
</command-display>
__________________________________________________________
Andrey Gordon | Integrity Interactive | Network Engineer | +1.781.398.3518
> From: James Hardin <[EMAIL PROTECTED]>
> Reply-To: InterMapper Discussion <[email protected]>
> Date: Thu, 11 Dec 2008 10:59:42 -0500
> To: InterMapper Discussion <[email protected]>, InterMapper
> Discussion <[email protected]>
> Subject: RE: [IM-Talk] Variables
>
> FYI, the ${devicename} variable works in the <script-output> section of my
> SNMP and Command Line probes.
>
> Jim
> ------------------------------------------------------------------------------
> ---------------
> Jim Hardin Senior Software Engineer
> IDT Cable Telephony Phone: 1-973-438-2444
> 1608 Rt. 88 W Suite 300 Email: [EMAIL PROTECTED]
> <mailto:[EMAIL PROTECTED]>
> Brick, NJ 08724
> ------------------------------------------------------------------------------
> ----------------
>
> ________________________________
>
> From: [email protected] on behalf of Bob Merrill
> Sent: Thu 12/11/2008 9:10 AM
> To: InterMapper Discussion
> Subject: Re: [IM-Talk] Variables
>
>
>
> Andrey,
>
> I'm working on documentation of variables available for access from probes.
>
> The ${devicename} variable works in the <script-output> section of a TCP
> Probe.
>
> There is a ${_remoteaddress} variable available in the <script> section,
> which is where you would likely be passing the host name to the device. That
> one would be worth a try - it's possible it will resolve it.
>
> I'm hoping to have a list of available variables in a tech tip in the next
> day or so.
>
> Best regards,
>
> Bob Merrill
> (Dartware's doc guy)
> ----- Original Message -----
> From: "Andrey Gordon" <[EMAIL PROTECTED]>
> To: "InterMapper Discussion" <[email protected]>
> Sent: Wednesday, December 10, 2008 11:15 AM
> Subject: Re: [IM-Talk] Variables
>
>
> ${devicename} does not seem to work. I just get NOT FOUND when using that.
> __________________________________________________________
> Andrey Gordon | Integrity Interactive | Network Engineer | +1.781.398.3518
>
>
>
>> From: James Hardin <[EMAIL PROTECTED]>
>> Reply-To: InterMapper Discussion <[email protected]>
>> Date: Wed, 10 Dec 2008 10:36:08 -0500
>> To: InterMapper Discussion <[email protected]>,
>> InterMapper
>> Discussion <[email protected]>
>> Subject: RE: [IM-Talk] Variables
>>
>> You can use the variable ${devicename}.
>>
>> Jim
>>
>>
----------------------------------------------------------------------------->>
-
>> ---------------
>> Jim Hardin Senior Software Engineer
>> IDT Cable Telephony Phone: 1-973-438-2444
>> 1608 Rt. 88 W Suite 300 Email: [EMAIL PROTECTED]
>> <mailto:[EMAIL PROTECTED]>
>> Brick, NJ 08724
>>
----------------------------------------------------------------------------->>
-
>> ----------------
>>
>> ________________________________
>>
>> From: [email protected] on behalf of Andrey Gordon
>> Sent: Wed 12/10/2008 9:57 AM
>> To: InterMapper Discussion
>> Subject: [IM-Talk] Variables
>>
>>
>>
>> I¹m parsing the Dev guide in search of the available variables with no
>> luck.
>> Can someone point me to the page where available variables are listed,
>> please?
>>
>> In particular, right now I¹m looking if there is a way to pass in an
>> actual
>> hostname instead of the IP address to my CLI probes. Meaning, right now, I
>> pass in ${ADDRESS} which passes in the IP address even if I put in
>> hostname
>> when adding a node. Is there a way to pass the value I put in the ³add
>> device² dialog?
>>
>> Thank you,
>> Andrey
>> __________________________________________________________
>> Andrey Gordon | Integrity Interactive | Network Engineer | +1.781.398.3518
>>
>>
>> ____________________________________________________________________
>> List archives:
>> http://www.mail-archive.com/intermapper-talk%40list.dartware.com/
>> To unsubscribe: send email to: [EMAIL PROTECTED]
>>
>>
>>
>> ____________________________________________________________________
>> List archives:
>> http://www.mail-archive.com/intermapper-talk%40list.dartware.com/
>> To unsubscribe: send email to: [EMAIL PROTECTED]
>>
>
> ____________________________________________________________________
> List archives:
> http://www.mail-archive.com/intermapper-talk%40list.dartware.com/
> To unsubscribe: send email to: [EMAIL PROTECTED]
>
>
> ____________________________________________________________________
> List archives:
> http://www.mail-archive.com/intermapper-talk%40list.dartware.com/
> To unsubscribe: send email to: [EMAIL PROTECTED]
>
>
>
> ____________________________________________________________________
> List archives:
> http://www.mail-archive.com/intermapper-talk%40list.dartware.com/
> To unsubscribe: send email to: [EMAIL PROTECTED]
>
____________________________________________________________________
List archives:
http://www.mail-archive.com/intermapper-talk%40list.dartware.com/
To unsubscribe: send email to: [EMAIL PROTECTED]