- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - OpenVMS
- >
- SNMP TRAP command not working
Operating System - OpenVMS
1753360
Members
4772
Online
108792
Solutions
Forums
Categories
Company
Local Language
юдл
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
юдл
back
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-19-2008 08:52 AM
тАО06-19-2008 08:52 AM
SNMP TRAP command not working
this command works :
snmp_trapsnd 0.0 local 0 0 0 "-v2c" -h 10.100.10.112
but this one doesnt :
snmp_trapsnd 0.0 local 0 0 0 "-v2c" -h 10.100.10.112 -D "SUNNY2 MSG"
Unexpected arguments.
#snmp_trapsnd enterprise agent-address generic specific timeticks
[-v version] [-c community] [-h host] [-p port] [-tcp] {variable [type value]}
the first command sends a trap but its filled with generic information and I wanted to send a specific msg via trap but i cant get the syntax right .
snmp_trapsnd 0.0 local 0 0 0 "-v2c" -h 10.100.10.112
but this one doesnt :
snmp_trapsnd 0.0 local 0 0 0 "-v2c" -h 10.100.10.112 -D "SUNNY2 MSG"
Unexpected arguments.
#snmp_trapsnd enterprise agent-address generic specific timeticks
[-v version] [-c community] [-h host] [-p port] [-tcp] {variable [type value]}
the first command sends a trap but its filled with generic information and I wanted to send a specific msg via trap but i cant get the syntax right .
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-19-2008 10:08 AM
тАО06-19-2008 10:08 AM
Re: SNMP TRAP command not working
OpenVMS version and platform? IP stack and version?
Process parse style? (SHOW PROCESS /ALL shows the parse setting.)
I don't see a -D option listed for OpenVMS with TCP/IP Services. Did you intend "-d" (lowercase) instead, as I might suspect?
OpenVMS (depending on how you have process parsing set) tends to upcase stuff when then hits C which downcases stuff, which is why folks tend to use "-v2c" to get an SNMPv2 request. But if you're preserving case within your process, the -D arrives as -D and not "-d".
And yes, snmp_trapsnd is pretty cryptic. There are better MIB browsers around, if that's your goal.
Process parse style? (SHOW PROCESS /ALL shows the parse setting.)
I don't see a -D option listed for OpenVMS with TCP/IP Services. Did you intend "-d" (lowercase) instead, as I might suspect?
OpenVMS (depending on how you have process parsing set) tends to upcase stuff when then hits C which downcases stuff, which is why folks tend to use "-v2c" to get an SNMPv2 request. But if you're preserving case within your process, the -D arrives as -D and not "-d".
And yes, snmp_trapsnd is pretty cryptic. There are better MIB browsers around, if that's your goal.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-19-2008 11:42 AM
тАО06-19-2008 11:42 AM
Re: SNMP TRAP command not working
there is a prameter "-D" ,see below:
parse style=traditional , Alpha axp vms 7.3-2
as I said that i could send the trap using snmp_trapsnd but Iam looking for syntax to send the custom msg via snmp.
The snmp_request and snmp_trapsnd commands support the data types listed in
Table 4├в 3. These values apply to Set requests only.
Table 4├в 3 Data Types for the snmp_request and snmp_trapsnd Commands
Data Type Value
Counter -c
Counter641 -l
Display string -D
Gauge -g
Integer -i
IP address -a
NULL -N
Object identifier -d
Octet -o
Opaque string -q
Time ticks -t
1For support of trap sender program (TCPIP$SNMP_TRAPSND.EXE) only. Properly defined, MIB
variables of type Counter64 are not writable.
parse style=traditional , Alpha axp vms 7.3-2
as I said that i could send the trap using snmp_trapsnd but Iam looking for syntax to send the custom msg via snmp.
The snmp_request and snmp_trapsnd commands support the data types listed in
Table 4├в 3. These values apply to Set requests only.
Table 4├в 3 Data Types for the snmp_request and snmp_trapsnd Commands
Data Type Value
Counter -c
Counter641 -l
Display string -D
Gauge -g
Integer -i
IP address -a
NULL -N
Object identifier -d
Octet -o
Opaque string -q
Time ticks -t
1For support of trap sender program (TCPIP$SNMP_TRAPSND.EXE) only. Properly defined, MIB
variables of type Counter64 are not writable.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-20-2008 06:51 AM
тАО06-20-2008 06:51 AM
Re: SNMP TRAP command not working
from hit and trial I found the right syntax :
snmp_trapsnd 0.0 local 0 0 0 -h 10.100.10.112 -v2c 1.3.6.1.6.3.1.1.4.1.0
"D" "trap sent from Sunny2 at 10:30"
snmp_trapsnd 0.0 local 0 0 0 -h 10.100.10.112 -v2c 1.3.6.1.6.3.1.1.4.1.0
"D" "trap sent from Sunny2 at 10:30"
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
News and Events
Support
© Copyright 2024 Hewlett Packard Enterprise Development LP