Skip to content
This repository has been archived by the owner on Mar 8, 2022. It is now read-only.

Several OIDs in the request #72

Open
kostya-php opened this issue Jun 13, 2018 · 0 comments
Open

Several OIDs in the request #72

kostya-php opened this issue Jun 13, 2018 · 0 comments

Comments

@kostya-php
Copy link

Hello!

There is bash script:

#!/bin/sh

HOST=$1
SERIAL=$2
CHANNEL=$3
PORT=$4
VLAN=$5
COMMUNITY=$6

snmpset -v2c -c $COMMUNITY $HOST \
1.3.6.1.4.1.35265.1.22.3.4.1.20.1.8.$SERIAL i 4 \
1.3.6.1.4.1.35265.1.22.3.4.1.3.1.8.$SERIAL u $CHANNEL \
1.3.6.1.4.1.35265.1.22.3.4.1.4.1.8.$SERIAL u $PORT

sleep 1

snmpset -v2c -c ${COMMUNITY} ${HOST} \
1.3.6.1.4.1.35265.1.22.3.4.1.43.1.8.${SERIAL} u 1 \
1.3.6.1.4.1.35265.1.22.3.14.1.4.1.8.${SERIAL}.1 i 1 \
1.3.6.1.4.1.35265.1.22.3.14.1.5.1.8.${SERIAL}.1 i ${VLAN}

These OIDs must be a single request. Can I make such a request using snmp-native?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant