Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4612270
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T01:22:48+00:00 2026-05-22T01:22:48+00:00

I’m trying to use SNMP to get data from a printer. If I turn

  • 0

I’m trying to use SNMP to get data from a printer. If I turn the printer off and on, the OID that I need to get is .1.3.6.1.2.1.43.18.1.1.8.1.1. Each time the printer has an “event”, such as getting paused, running out of paper or having a paper jam, the OIDfor the data I want increments.

For example, I turn the printer on and query .1.3.6.1.2.1.43.18.1.1.8.1.1. and I get “paused” as the value. I unpause the printer and remove all of the paper from the printer, and to get the “add paper” message I have to query .1.3.6.1.2.1.43.18.1.1.8.1.2.

I don’t know if this is normal SNMP behavior but I wonder what people suggest I do in these cases to be able to programatically get the printer state?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-22T01:22:49+00:00Added an answer on May 22, 2026 at 1:22 am

    Yes it’s normal you are retreiving rows from an alert table :

    Just have a look to the mib :

    enter image description here

    The corresponding text part of the mib is (from RFC 1759):

    prtAlertTable OBJECT-TYPE
        SYNTAX     SEQUENCE OF PrtAlertEntry
        MAX-ACCESS not-accessible
        STATUS     current
        DESCRIPTION
            ""
        ::= { prtAlert 1 }
    
    prtAlertEntry OBJECT-TYPE
        SYNTAX     PrtAlertEntry
        MAX-ACCESS not-accessible
        STATUS     current
        DESCRIPTION
            "Entries may exist in the table for each device
            index who's device type is `printer'."
        INDEX  { hrDeviceIndex, prtAlertIndex }
        ::= { prtAlertTable 1 }
    
    PrtAlertEntry ::= SEQUENCE {
        prtAlertIndex               Integer32,
        prtAlertSeverityLevel       INTEGER,
        prtAlertTrainingLevel       INTEGER,
        prtAlertGroup               INTEGER,
        prtAlertGroupIndex          Integer32,
        prtAlertLocation            Integer32,
        prtAlertCode                INTEGER,
        prtAlertDescription         OCTET STRING,
        prtAlertTime                TimeTicks
    }
    

    So the way SNMP works is to is to suffix the OID entry of the MIB by the index of the row. You can get the whole table by a Get-Bulk, but I think that the first thing for you is to understand how to retreive an SNMP table.

    In your exact case : 1.3.6.1.2.1.43.18.1.1.8.1.1 you have to read it as :

    1.3.6.1.2.1.43.18.1.1.8 : prtAlertDescription followed by

    1 : the hrDeviceIndex followed by

    1 : the prtAlertIndex which is the row.

    An Advice you can find an assembly called snmpsharpnet which is very helpful to play with SNMP on the top of .NET.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Basically, what I'm trying to create is a page of div tags, each has
I am trying to understand how to use SyndicationItem to display feed which is
I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this
I'm trying to decode HTML entries from here NYTimes.com and I cannot figure out
I need a function that will clean a strings' special characters. I do NOT
I'm trying to use string.replace('’','') to replace the dreaded weird single-quote character: ’ (aka
I'm trying to create an if statement in PHP that prevents a single post
link Im having trouble converting the html entites into html characters, (&# 8217;) i
That's pretty much it. I'm using Nokogiri to scrape a web page what has
For some reason, after submitting a string like this Jack’s Spindle from a text

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.