snmptrap command - Help Please!!

Hi All,

I am trying to generate a trap with in the localhost.

Please see the attachment for the exact syntax what I am using to generate the traps. However, I am getting the following error.

Unknown Object Identifier (Sub-id not found: (top) -> )

Can you please guide me how to use the exact syntax in Solaris 10 to generate this trap within local host.

Thanks in Advance,
Gobinathan.S

try this command

snmptrap -v 2c -c mycommunity localhost 0 linkUp  ifIndex.1 i 1  ifDescr s eth0     ifAdminStatus.1 i up ifOperStatus.1 i up