Narrative:

During IFR flight talking to approach control; I began to experience heading/altitude control issues. By correcting for perceived incorrect heading; I lost approximately 300 ft of altitude near [an] air force base where active flight operations were underway. My assigned altitude was 3;000 ft MSL. I eventually determined that my vacuum pump was working intermittently and causing false readings on the directional gyro (dg) and attitude indicator; and I engaged the standby vacuum system. Also at this point; I inadvertently turned off the avionics power switch and had to restart the GPS for the route and approach. Once the GPS was reprogrammed and the standby vacuum was engaged; the remainder of the flight went as planned.

Google
 

Original NASA ASRS Text

Title: C172 pilot reports difficulty maintaining altitude and heading on an IFR flight plan in IMC; and discovers that the vacuum pump is working intermittently. The standby pump is engaged but during the troubleshooting process the avionics power switch is inadvertently turned off requiring a restart and programing of the GPS.

Narrative: During IFR flight talking to Approach Control; I began to experience heading/altitude control issues. By correcting for perceived incorrect heading; I lost approximately 300 FT of altitude near [an] Air Force Base where active flight operations were underway. My assigned altitude was 3;000 FT MSL. I eventually determined that my vacuum pump was working intermittently and causing false readings on the directional gyro (DG) and attitude indicator; and I engaged the standby vacuum system. Also at this point; I inadvertently turned off the avionics power switch and had to restart the GPS for the route and approach. Once the GPS was reprogrammed and the standby vacuum was engaged; the remainder of the flight went as planned.

Data retrieved from NASA's ASRS site as of July 2013 and automatically converted to unabbreviated mixed upper/lowercase text. This report is for informational purposes with no guarantee of accuracy. See NASA's ASRS site for official report.